<template>
  <div>
  <h3>选择你喜欢的版块</h3>
    <div v-for="(val, index) in list" :key="index" style="display: inline-block;">
     
      <input type="checkbox" v-model="hoddy" :value="val"/>  {{val}}
    </div>
    <ul>
      
      <li v-for="(item, index) in hoddy" :key="index">{{ item }}</li>
    </ul>
  </div>
</template>

<script>
export default {
  data() {
    return {
     list: ["科幻", "喜剧", "动漫", "冒险", "科技", "军事", "娱乐", "奇闻"],
      hoddy: [] 
    };
  },
};
</script>

<style>
</style>